$import('ListView');
$import('CurrentView');
$ready(function(){
	var currentView = new CurrentView({
		modelId:"bar",
		setCurrent:function(pojo){
			
		}
	});
	currentView.refresh();
	var listView = new ListView({
		modelId:'bar',
		domId:'divId',
		createItem:function(options){
			var pojo = options.pojo;
			return dom;
		},
		doSetCurrent:function(pojo){
			
		},
		doCanelCurrent:function(pojo){
			
		}
	});
	
	myView.addSetStateFun('stateId',function(pojo){
		
	});
	myView.addCancelStateFun('stateId',function(pojo){
		
	});
	myView.createDomId('xxx');
	var dom = myView.getViewDom('xxx');
	listView.refresh();
});